package com.example.extenddemo.entity;

import com.example.extenddemo.handle.ListToJson;
import com.fasterxml.jackson.annotation.JacksonInject;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMapping;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName TestMapStruct
 * @Description TODO
 * @Author 郭敖
 * @Date 2024年02月20日 21:37
 * @Version 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@AutoMapper(target = TestMapStructVo.class,uses = ListToJson.class)
public class TestMapStruct {
    private String name;
    private Integer age;
    @AutoMapping(target = "listJson")
    private List<Student> list;
}
